package mygame;
import main.GameTree;
import main.TAdapter;
import quadtree.DoublePoint;
import stateManager.State;
import java.awt.Point;

import enemyPackage.Alien;
import mygame.State1;
import player.Gun;
import player.Reticle;
import player.Shot;
import player.Triangle;


public class State2 extends State1 {
	

	public GameTree modifyGameTree(){
		this.oldGameTree = gameTree;
		this.gameTree = new GameTree();
		Alien alien = new Alien();
		gameTree.insertSprite(new DoublePoint(400, 400), alien);
		return gameTree;
	}
	
	public GameTree gameHandleInput(TAdapter userInput){
		
		if(userInput.inputHandler.MOUSE_PRESSED == true) {
			userInput.inputHandler.MOUSE_PRESSED = false;
			
			if(userInput.inputHandler.MOUSE_LEFT_CLICK) {
				userInput.inputHandler.MOUSE_LEFT_CLICK = false;
				stateManager.changeStatesOnNextLoop(this, "emptyToDefault");
				
			}
		}
		return gameTree;
	}
	
}
